package org.jeecg.modules.erp.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 物料基础信息
 * @Author: jeecg-boot
 * @Date: 2024-05-21
 * @Version: V1.0
 */
@Data
@TableName("erp_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "erp_goods对象", description = "物料基础信息")
public class ErpGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
    /**
     * 编号
     */
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String code;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String noneSpec;
    /**
     * 包装规格(g)
     */
    @Excel(name = "包装规格(g)", width = 30)
    @ApiModelProperty(value = "包装规格(g)")
    private String packSpec;
    /**
     * 物料种类
     */
    @ApiModelProperty(value = "物料种类")
    private String categoryCode;
    /**
     * 客户物料编号
     */
    @Excel(name = "客户物料编号", width = 15)
    @ApiModelProperty(value = "客户物料编号")
    private String customCode;
    /**
     * 计量单位
     */
    @Excel(name = "计量单位", width = 15, dicCode = "ji_unit")
    @Dict(dicCode = "ji_unit")
    @ApiModelProperty(value = "计量单位")
    private String meUnit;
    /**
     * 辅助单位
     */
    @Excel(name = "辅助单位", width = 15, dicCode = "zl_unit")
    @Dict(dicCode = "zl_unit")
    @ApiModelProperty(value = "辅助单位")
    private String auUnit;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "erp_status")
    @Dict(dicCode = "erp_status")
    @ApiModelProperty(value = "状态")
    private Integer status;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 换算率
     */
    @Excel(name = "换算率", width = 15)
    @ApiModelProperty(value = "换算率")
    private String coRate;
    /**
     * 物料分类
     */
    @Excel(name = "物料分类", width = 15, dictTable = "erp_goods_classification", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_goods_classification", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "物料分类")
    private String classificationId;
    /**
     * 是否有版样
     */
    @Excel(name = "是否有版样", width = 15, dicCode = "yes_no")
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否有版样")
    private Integer isPattern;
    /**
     * 安全库量
     */
    @Excel(name = "安全库量", width = 15)
    @ApiModelProperty(value = "安全库量")
    private Integer stockQuantity;
    /**
     * 所属仓库
     */
    @ApiModelProperty(value = "所属仓库")
    private String warehouseCode;
    /**
     * 是否关联包材
     */
    @Excel(name = "是否关联包材", width = 15, dicCode = "yes_no")
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否关联包材")
    private Integer isAssBc;
    /**
     * 是否公用
     */
    @Excel(name = "是否公用", width = 15, dicCode = "yes_no")
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否公用")
    private Integer isPublic;
    /**
     * 是否领料
     */
    @Excel(name = "是否领料", width = 15, dicCode = "yes_no")
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否领料")
    private String isUse;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**材质*/
    @Excel(name = "材质", width = 15)
    @ApiModelProperty(value = "材质")
    private java.lang.String materialQuality;
    /**包材种类*/
    @Excel(name = "包材种类", width = 15, dicCode = "bc_type")
    @Dict(dicCode = "bc_type")
    @ApiModelProperty(value = "包材种类")
    private java.lang.String packageType;

    /**供应商id*/
    @Excel(name = "供应商id", width = 15)
    @ApiModelProperty(value = "供应商id")
    private java.lang.String supplierId;

    /**库存数量*/
    @Excel(name = "库存数量", width = 15)
    @ApiModelProperty(value = "库存数量")
    private java.math.BigDecimal inventoryQuantity;
}
